﻿using Itech_Run.HttpApi.Shared.Result;
using Itech_Run.HttpApi.Shared;
using Itech_Run.Sys.Application.Contracts.Service;
using Microsoft.AspNetCore.Mvc;

namespace Itech_Run.Sys.HttpApi.Controllers
{
    public class SysButtonController : BaseApiController
    {
        private readonly ISysButtonService _sysButtonService;
        public SysButtonController(ISysButtonService sysButtonService)
        {
            _sysButtonService = sysButtonService;
        }

        [HttpGet]
        public async Task<CustomResult> GetListKeyValueAsync()
        {
            return new CustomResult(await _sysButtonService.GetListKeyValueAsync());
        }
    }
}
